package modeles;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import java.util.BitSet;


public class Interface {
	
	public static void main(String[] args) {
		//form pour message et clé
				// choix entr ecrire a la main et voir resultat ou recupere file et mettre resultat dans autre file
				String message = "bonjour ";
				
			
				String key = "EEEEEE";
					
		DES_Encrypt encrypt = new DES_Encrypt(key, message);
		
		TripleDES triple = new TripleDES("test1tes", "jghtyrue", "yrtegard", message);
		int[] bloctriple = triple.doEncryption("CBC");
		triple.doDecryption(bloctriple, "CBC");
		
//		//encrypt resultat bin et string
//		int[] bloc = encrypt.doEncryption("CBC");
//		//	System.out.println("res Encrypt: "+encrypt.tot_string);
//
//		System.out.println("***********DECRYPTION**************");
////		
//		encrypt.doDecryption(bloc, "CBC");
//		//System.out.println("tot_string : "+encrypt.tot_string);
//		//encrypt.doDecryptionString("�2׻�C�%");
//		System.out.println("res : "+encrypt.tot_string);
		
	}

}


